package com.program.houai.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @version v1.0
 * @ProjectName: hou
 * @ClassName: UserWithdrawEntity
 * @Description: TODO(一句话描述该类的功能)
 * @Author: Topcheer
 * @Date: 2024/9/6 22:29
 */
@TableName("tb_user_withdraw")
@Data
@ApiModel(value ="用户提现记录",description = "用户提现记录字段")
public class UserWithdrawEntity {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private int id;

    @ApiModelProperty(value = "用户Id")
    private int userId;

    @ApiModelProperty(value = "卡Id")
    private int cardId;

    @ApiModelProperty(value = "用户姓名")
    private String name;

    @ApiModelProperty(value = "提现单号")
    private String withdrawNumber;


    @ApiModelProperty(value = "身份证号码")
    private String idCard;

    @ApiModelProperty(value = "银行卡号")
    private String bankNumber;

    @ApiModelProperty(value = "开户行")
    private String bankDeposit;

    @ApiModelProperty(value = "开户支行")
    private String bankBranch;

    @ApiModelProperty(value = "审核状态 0审核中 1审核通过 2审核不通过")
    private int isCheck;

    @ApiModelProperty(value = "服务费")
    private int serviceCharge;

    @ApiModelProperty(value = "提现金额")
    private int withdrawAmount;

    @ApiModelProperty(value = "钱包余额")
    private int balance;

    @ApiModelProperty(value = "1佣金结算2提现")
    private int type;

    @ApiModelProperty(value = "服务费-2位小数")
    @TableField(exist = false)
    private String serviceChargeStr;

    @ApiModelProperty(value = "提现金额-2位小数")
    @TableField(exist = false)
    private String withdrawAmountStr;

    @ApiModelProperty(value = "钱包余额-2位小数")
    @TableField(exist = false)
    private String balanceStr;

    @TableLogic
    private int isDeleted;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "图片url")
    @TableField(exist = false)
    private String url;

    @ApiModelProperty(value = "状态-中文描述")
    @TableField(exist = false)
    private String isCheckStr;


}
